﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
	<link href="js-console.css" rel="stylesheet" />
	<!--2. Write a Boolean expression that checks for given 
	integer if it can be divided (without remainder) by 7 
	and 5 in the same time.-->
</head>
<body>
	<div id="js-console"></div>
	<script src="js-console.js"></script>
	<script>
		var input = prompt("Enter integer value");

		if (!isNaN(input)) {
			var result = (input % 7) == 0 && (input % 7) == 0;
			jsConsole.writeLine("The number is divided by 7 and 5 at the same time = " + result)
		}
		else {
			jsConsole.writeLine("Not a Number.");
		}
	</script>
</body>
</html>
